package com.xueqiu.movieplaymanagersystem.enums;

/**
 * @author xueqiu
 * @Description: 用来枚举cookie的存活时间
 */
public enum CookieAge {
    //周7天
    WEEK(60 * 60 * 24 * 7),
    //月30天
    MONTH(60 * 60 * 24 * 30),
    //1小时
    HOUR(60 * 60),
    //存活时间为0，也就是销毁
    ZERO(0),
    //默认-1
    DEFAULT(-1);

    private final int code;

    CookieAge(int code) {
        this.code = code;
    }

    public Integer getCode() {
        return this.code;
    }
}
